package com.test.sb2._02_banner;

import org.springframework.boot.ResourceBanner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.io.ClassPathResource;

@SpringBootApplication
public class BannerApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(BannerApplication.class);
        app.setBanner(new ResourceBanner(new ClassPathResource("banner.txt")));
        app.run(args);
    }

}
